<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="epopos" uri="http://www.shengruan.com/taglib"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/admin/assets/js/util.js"></script>
<script type="text/javascript" src="/assets/js/dojo/dojo.js"></script>
<script language="javascript">
dojo.require("dojo.io.*");
function check()
{

	
	OS.showLoading("errorTd","更新中，请稍候...");
	document.getElementById("sureButton").disabled = true;
	dojo.io.bind({
			url: "licence.aos?method=update",
			formNode:dojo.byId("licenceForm"),
			mimetype:"text/html",
			method:"POST",
			encoding:"UTF-8",
			timeout:10000, 
			preventCache:true,
			load: function(type, data, evt){
				if(data=="errorCode")
				{
					OS.showWarming("errorTd","更新失败，授权号码不正确!");
				}
				else
				{
					alert("更新成功！");
					window.location = "licence.aos?method=info";
				}
				document.getElementById("sureButton").disabled = false;
			},
			error: function(type, error){
				
			},
			timeout: function(type, data, evt){
				
			}
		});
		return false;
}

window.onload = function()
{

}
</script>
<style type="text/css">
<!--
.liceInput {
	width: 380px;
}
-->
</style>
</head>
<body class="main">
<form method="post" name="licenceForm" id="licenceForm" action="" onSubmit="return check()" >
<table class="container" cellpadding="0" cellspacing="0">
<tr><td>
<table class="dialog" align="center" cellpadding="0" cellspacing="0" width="479">
<tr>
<td>
    <table class="header" cellpadding="0" cellspacing="0">
    <tr>
    <td>关于软件</td>
    </tr>
    </table>
</td>
</tr>
<tr>
<td><table class="body" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%" height="153" align="center" id="errorTd">人脉网：<a href="http://www.renmai.com" target="_blank">http://www.renmai.com</a></td>
  </tr>
  </table></td>
</tr>
<tr>
<td>
    <table class="footer" cellpadding="0" cellspacing="0">
    <tr>
    <td>&nbsp;</td>
    </tr>
    </table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
